import request from '@/utils/request'

/**
 * @description: (物料)登记一个新的物料
 */
export async function enregisterMateriel(params?): Promise<any> {
    return request.post('/api/repositoryManager/enregisterMateriel', params)
}

/**
 * @description: (物料)获取所有物料分类
 */
export async function getAllMaterielRegulationData(params?): Promise<any> {
    return request.post('/api/repositoryManager/getAllMaterielRegulationData', params)
}

/**
 * @description: (命名规则)列举某大类下的平级分类
 */
export async function queryClassForRegulation(params?): Promise<any> {
    return request.post('/api/repositoryManager/queryClassForRegulation', params)
}
/**
 * @description: 根据预登记号查询信息
 */
export async function queryPreregisterInfo(params?): Promise<any> {
    return request.post('/api/preregister/queryPreregisterInfo', params)
}

/**
 * @description: 调增调减货物数量
 */
export async function adjustProductQuantity(params?): Promise<any> {
    return request.post('/api/repositoryManager/adjustProductQuantity', params)
}

/**
 * @description: 查询物料信息根据物料号
 */
export async function queryProductMessage(params?): Promise<any> {
    return request.post('/api/repositoryManager/queryProductMessage', params)
}